//
//  weiboForwardCell.swift
//  WEIBO_SWIFT
//
//  Created by 岳挺 on 15/7/4.
//  Copyright © 2015年 yueting. All rights reserved.
//

import UIKit
import FFAutoLayout

class weiboForwardCell: WeiboStatusCell {
    
//    lazy var forwardLabel : UILabel = {
//        let l = UILabel()
//        
//        return l
//        }()
    
    lazy var forwardBtn : UIButton = {
        let btn = UIButton()
        btn.backgroundColor = UIColor.yellowColor()
        return btn
        }()
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        forwardLabel = UILabel()
        forwardLabel!.preferredMaxLayoutWidth = UIScreen.mainScreen().bounds.size.width - 20
        forwardLabel!.numberOfLines = 0
        forwardLabel!.font = UIFont.systemFontOfSize(13.0)
        
//        addSubview(forwardBtn)
        insertSubview(forwardLabel!, atIndex: 0)
        insertSubview(forwardBtn, atIndex: 0)
//        addSubview(forwardLabel)
        
        forwardBtn.ff_AlignVertical(ff_AlignType.BottomLeft, referView: content, size: nil, offset: CGPoint(x: -8, y: 0))
        forwardBtn.ff_AlignVertical(ff_AlignType.TopRight, referView: footerView, size: nil, offset: CGPoint(x: 0, y: 0))
        forwardLabel!.ff_AlignInner(ff_AlignType.TopLeft, referView: forwardBtn, size: nil, offset: CGPoint(x: 10, y: 10))
        
        let cons = picView.ff_AlignVertical(ff_AlignType.BottomLeft, referView: forwardLabel!, size: CGSizeMake(290, 290), offset: CGPoint(x: 0, y: 8))
        recordPicViewLayoutConstrains(cons)
        
    }

    required init(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
